<div class="container_12"> 
 <div class="module">
                     <h2><span><?=$_title?></span></h2>
                        
                     <div class="module-body">
                     <form id="adminForm" name="adminForm" action="" method="post">
                        <div style="margin-top:13px;"><?php
if(isset($errMsg)){?>
<span class="notification <?php echo $_MESSESGE[$errMsg]['type']?>"><?php echo $_MESSESGE[$errMsg]['msg']?></span>
<?php }?></div>
                            <div>
          
                            </div>
                            
                            <p>
                                <label>First Name</label>
                                <input type="text" class="input-short" id="first_name" name="first_name" value="<?php echo $row['first_name']?>"/>
                                
                            </p>
                            
                            <p>
                                <label>Last Name</label>
                                <input type="text" class="input-short" id="last_name" name="last_name" value="<?php echo $row['last_name']?>"/>
                                
                            </p>
                            <p>
                                <label>Email Id</label>
                                <input type="text" class="input-short" id="email_id" name="email_id" value="<?php echo $row['email_id']?>"/>
                                
                            </p>
                            <p>
                                <label>Mobile No</label>
                                <input type="text" class="input-short" id="mobile_no" name="mobile_no" value="<?php echo $row['mobile_no']?>"/>
                                
                            </p>
							<p>
                                <label>Dob(YYYY/MM/DD)</label>
								<?php $dobArr = @explode("-",$row[dob]);?>
                                <select id="dobmonth" name="dobmonth" tabindex="4" size="1" class="input-short" style="width:80px;">
								<option value='0' selected>-Month-</option>
								<option value=1>January</option>
								<option value=2>February</option>
								<option value=3>March</option>
								<option value=4>April</option>
								<option value=5>May</option>
								<option value=6>June</option>
								<option value=7>July</option>
								<option value=8>August</option>
								<option value=9>September</option>
								<option value=10>October</option>
								<option value=11>November</option>
								<option value=12>December</option>		
								</select>
								<script>document.getElementById("dobmonth").value="<?php echo (int)$dobArr[1]?>";</script>
								<select id="dobday" name="dobday" tabindex="5" style="width:65px;" class="input-short" >
								<option value='0' selected>-Date-</option><option value=1 >1</option><option value=2 >2</option><option value=3 >3</option><option value=4 >4</option><option value=5 >5</option><option value=6 >6</option><option value=7 >7</option><option value=8 >8</option><option value=9 >9</option><option value=10 >10</option><option value=11 >11</option><option value=12 >12</option><option value=13 >13</option><option value=14 >14</option><option value=15 >15</option><option value=16 >16</option><option value=17 >17</option><option value=18 >18</option><option value=19 >19</option><option value=20 >20</option><option value=21 >21</option><option value=22 >22</option><option value=23 >23</option><option value=24 >24</option><option value=25 >25</option><option value=26 >26</option><option value=27 >27</option><option value=28 >28</option><option value=29 >29</option><option value=30 >30</option><option value=31 >31</option>
								</select>
								<script>document.getElementById("dobday").value="<?php echo (int)$dobArr[2]?>";</script>
								<select id="dobyear" name="dobyear" tabindex="6" style="width:65px;" class="input-short" >
								<option value='0' selected>-Year-</option><option value=1993 >1993</option><option value=1992 >1992</option><option value=1991 >1991</option><option value=1990 >1990</option><option value=1989 >1989</option><option value=1988 >1988</option><option value=1987 >1987</option><option value=1986 >1986</option><option value=1985 >1985</option><option value=1984 >1984</option><option value=1983 >1983</option><option value=1982 >1982</option><option value=1981 >1981</option><option value=1980 >1980</option><option value=1979 >1979</option><option value=1978 >1978</option><option value=1977 >1977</option><option value=1976 >1976</option><option value=1975 >1975</option><option value=1974 >1974</option><option value=1973 >1973</option><option value=1972 >1972</option><option value=1971 >1971</option><option value=1970 >1970</option><option value=1969 >1969</option><option value=1968 >1968</option><option value=1967 >1967</option><option value=1966 >1966</option><option value=1965 >1965</option><option value=1964 >1964</option><option value=1963 >1963</option><option value=1962 >1962</option><option value=1961 >1961</option><option value=1960 >1960</option><option value=1959 >1959</option><option value=1958 >1958</option><option value=1957 >1957</option><option value=1956 >1956</option><option value=1955 >1955</option><option value=1954 >1954</option><option value=1953 >1953</option><option value=1952 >1952</option><option value=1951 >1951</option><option value=1950 >1950</option><option value=1949 >1949</option><option value=1948 >1948</option><option value=1947 >1947</option><option value=1946 >1946</option><option value=1945 >1945</option><option value=1944 >1944</option><option value=1943 >1943</option><option value=1942 >1942</option><option value=1941 >1941</option>		</select>
                                <script>document.getElementById("dobyear").value="<?php echo $dobArr[0]?>";</script>
                            </p>
							<p>
                                <label>Gender</label>
                                <select class="input-short" id="gender" name="gender">
                                    <option value="0">Male</option>
                                    <option value="1">Female</option>
                                    
                                </select>
								<script>document.getElementById("gender").value="<?php echo $row['gender']?>";</script>
                            </p>
                            
                            <p>
                                <label>Address</label>
                                <textarea rows="7" cols="90" class="input-short" id="address" name="address"><?php echo $row['address']?></textarea>
                            </p>
							<p>
                                <label>Country</label>
                                <select class="input-short" id="country" name="country">
                                   <?php  echo $country;?>
								</select>
								<script>document.getElementById("country").value="<?php echo $row['country']?>";</script>
                            </p>
							<p>
                                <label>State</label>
                                <select class="input-short" id="state" name="state">
                                    <?php  echo $state;?>
								</select>
                                    
                               
								<script>document.getElementById("state").value="<?php echo $row['state']?>";</script>
                            </p>
                            <p>
                                <label>City</label>
                                <select class="input-short" id="city" name="city">
                                    <?php  echo $city;?>
								</select>
								<script>document.getElementById("city").value="<?php echo $row['city']?>";</script>
                            </p>
							
                            
							<p>
                                <label>Martial Status</label>
                                <select class="input-short" name="marital_status" id="marital_status" size="1">
		<option value="0">-- Select --</option><option value="1" selected="">Unmarried</option><option value="2">Widow/Widower</option><option value="3">Divorced</option><option value="4">Separated</option>		</select>
                            <script>document.getElementById("marital_status").value="<?php echo $row['marital_status']?>";</script>
							</p>
                            <p>
                                <label>Profession</label>
                                <select class="input-short" name="profession" id="profession" size="1" tabindex="6" >		
		<option value="0">-- Select --</option><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- ADMIN --"><option value="49">Manager</option><option value="48">Supervisor</option><option value="47">Officer</option><option value="39">Administrative Professional</option><option value="50">Executive</option><option value="46">Clerk</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- AGRICULTURE --"><option value="37">Agriculture &amp; Farming Professional</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- AIRLINE --"><option value="30">Pilot</option><option value="28">Air Hostess</option><option value="29">Airline Professional</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- ARCHITECT &amp; DESIGN --"><option value="19">Architect</option><option value="20">Interior Designer</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- BANKING &amp; FINANCE --"><option value="7">Chartered Accountant</option><option value="10">Company Secretary</option><option value="8">Accounts/Finance Professional</option><option value="16">Banking Service Professional</option><option value="9">Auditor</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- BEAUTY &amp; FASHION --"><option value="25">Fashion Designer</option><option value="33">Beautician</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- CIVIL SERVICES --"><option value="52">Civil Services (IAS/IPS/IRS/IES/IFS)</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- DEFENCE --"><option value="53">Army</option><option value="54">Navy</option><option value="55">Airforce</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- EDUCATION --"><option value="5">Professor / Lecturer</option><option value="4">Teaching / Academician</option><option value="6">Education Professional</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- HOSPITALITY --"><option value="34">Hotel / Hospitality Professional</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- IT &amp; ENGINEERING --"><option value="1" selected="">Software Professional</option><option value="2">Hardware Professional</option><option value="3">Engineer - Non IT</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- LEGAL --"><option value="17">Lawyer &amp; Legal Professional</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- LAW ENFORCEMENT  --"><option value="18">Law Enforcement Officer</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- MEDICAL --"><option value="12">Doctor</option><option value="14">Health Care Professional</option><option value="15">Paramedical Professional</option><option value="13">Nurse</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- MARKETING &amp; SALES --"><option value="42">Marketing Professional</option><option value="43">Sales Professional</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- MEDIA &amp; ENTERTAINMENT --"><option value="27">Journalist</option><option value="22">Media Professional</option><option value="24">Entertainment Professional</option><option value="26">Event Management Professional</option><option value="21">Advertising / PR Professional</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- MERCHANT NAVY --"><option value="32">Mariner / Merchant Navy</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- SCIENTIST --"><option value="35">Scientist / Researcher</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- TOP MANAGEMENT --"><option value="41">CXO / President, Director, Chairman</option></optgroup><optgroup label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- OTHERS --"><option value="45">Consultant</option><option value="40">Customer Care Professional</option><option value="36">Social Worker</option><option value="51">Sportsman</option><option value="44">Technician</option><option value="38">Arts &amp; Craftsman</option><option value="888">Not Working</option></optgroup>		</select>
                            <script>document.getElementById("profession").value="<?php echo $row['profession']?>";</script>
							</p>
							<p><?php $dobArr = @explode("-",$row[anniversary_date]);?>
                                <label>Anivesary Date(YYYY/MM/DD)</label>
                                <select id="anniversarymonth" name="anniversarymonth" tabindex="4" size="1" class="input-short"  style="width:80px;">
								<option value='0' selected>-Month-</option>
								<option value=1>January</option>
								<option value=2>February</option>
								<option value=3>March</option>
								<option value=4>April</option>
								<option value=5>May</option>
								<option value=6>June</option>
								<option value=7>July</option>
								<option value=8>August</option>
								<option value=9>September</option><option value=10>October</option><option value=11>November</option><option value=12>December</option>		</select>
								<script>document.getElementById("anniversarymonth").value="<?php echo (int)$dobArr[1]?>";</script>
								<select id="anniversaryday" name="anniversaryday" tabindex="5" style="width:65px;" class="input-short" >
								<option value='0' selected>-Date-</option><option value=1 >1</option><option value=2 >2</option><option value=3 >3</option><option value=4 >4</option><option value=5 >5</option><option value=6 >6</option><option value=7 >7</option><option value=8 >8</option><option value=9 >9</option><option value=10 >10</option><option value=11 >11</option><option value=12 >12</option><option value=13 >13</option><option value=14 >14</option><option value=15 >15</option><option value=16 >16</option><option value=17 >17</option><option value=18 >18</option><option value=19 >19</option><option value=20 >20</option><option value=21 >21</option><option value=22 >22</option><option value=23 >23</option><option value=24 >24</option><option value=25 >25</option><option value=26 >26</option><option value=27 >27</option><option value=28 >28</option><option value=29 >29</option><option value=30 >30</option><option value=31 >31</option>		</select>
								<script>document.getElementById("anniversaryday").value="<?php echo (int)$dobArr[2]?>";</script>
								<select id="anniversaryyear" name="anniversaryyear" tabindex="6" style="width:65px;" class="input-short" >
								<option value='0' selected>-Year-</option><option value=1993 >1993</option><option value=1992 >1992</option><option value=1991 >1991</option><option value=1990 >1990</option><option value=1989 >1989</option><option value=1988 >1988</option><option value=1987 >1987</option><option value=1986 >1986</option><option value=1985 >1985</option><option value=1984 >1984</option><option value=1983 >1983</option><option value=1982 >1982</option><option value=1981 >1981</option><option value=1980 >1980</option><option value=1979 >1979</option><option value=1978 >1978</option><option value=1977 >1977</option><option value=1976 >1976</option><option value=1975 >1975</option><option value=1974 >1974</option><option value=1973 >1973</option><option value=1972 >1972</option><option value=1971 >1971</option><option value=1970 >1970</option><option value=1969 >1969</option><option value=1968 >1968</option><option value=1967 >1967</option><option value=1966 >1966</option><option value=1965 >1965</option><option value=1964 >1964</option><option value=1963 >1963</option><option value=1962 >1962</option><option value=1961 >1961</option><option value=1960 >1960</option><option value=1959 >1959</option><option value=1958 >1958</option><option value=1957 >1957</option><option value=1956 >1956</option><option value=1955 >1955</option><option value=1954 >1954</option><option value=1953 >1953</option><option value=1952 >1952</option><option value=1951 >1951</option><option value=1950 >1950</option><option value=1949 >1949</option><option value=1948 >1948</option><option value=1947 >1947</option><option value=1946 >1946</option><option value=1945 >1945</option><option value=1944 >1944</option><option value=1943 >1943</option><option value=1942 >1942</option><option value=1941 >1941</option>		</select>
                                <script>document.getElementById("anniversaryyear").value="<?php echo $dobArr[0]?>";</script>
                            </p>
							 <p>
                                <label>Marriage Planning</label>
                                <textarea rows="7" cols="90" class="input-short" id="marriage_panning" name="marriage_panning"><?php echo $row['marriage_panning']?></textarea>
                            </p>
							 <p>
                                <label>Interests</label>
                                <textarea rows="7" cols="90" class="input-short" id="interests" name="interests"><?php echo $row['interests']?></textarea>
                            </p>
							 <p>
                                <label>Likes/Dislikes</label>
                                <textarea rows="7" cols="90" class="input-short" id="likes_dislikes" name="likes_dislikes"><?php echo $row['likes_dislikes']?></textarea>
                            </p>
							<p>
                                <label>Email Verified</label>
                                <select class="input-short" id="is_email_varified" name="is_email_varified">
                                    <option value="1">Yes</option>
                                    <option value="0">No</option>
                                    
                                </select>
								<script>document.getElementById("is_email_varified").value="<?php echo $row['is_email_varified']?>";</script>
                            </p>
                            <p>
                                <label>Mobile Verified</label>
                                <select class="input-short" id="is_mobile_varified" name="is_mobile_varified">
                                    <option value="1">Yes</option>
                                    <option value="0">No</option>
                                    
                                </select>
								<script>document.getElementById("is_mobile_varified").value="<?php echo $row['is_mobile_varified']?>";</script>
                            </p>
                           <p>
                                <label>Status</label>
                                <select class="input-short" id="status" name="status">
                                    <option value="1">Active</option>
                                    <option value="0">Deactive</option>
                                    
                                </select>
								<script>document.getElementById("status").value="<?php echo $row['status']?>";</script>
                            </p>
							<input type="hidden" name="id" value="<?php echo $id?>">
                            <fieldset>
                                <input class="submit-green" type="submit" value="Submit" name="submit"/> 
                                <input class="submit-gray" type="reset" value="Cancel" />
                            </fieldset>
                        </form>
                     </div> <!-- End .module-body -->

                </div>  <!-- End .module -->
        		<div style="clear:both;"></div>
			</div>
			
<script language="JavaScript" type="text/javascript">
$(function(){
	$("#country").change(function(){
	var id=$("#country").val();
	var dataString = 'type=state&id='+ id;
	$.ajax({
		type: "GET",
		url: "<?php echo _SITE_ADMIN_URL_?>ajax/getGeo.php",
		data: dataString,
		cache: false,
		success: function(html){
			$("#state").html(html);
		} 
	})
	})
	$("#state").change(function(){
	var id=$("#state").val();
	var dataString = 'type=city&id='+ id;
	$.ajax({
		type: "GET",
		url: "<?php echo _SITE_ADMIN_URL_?>ajax/getGeo.php",
		data: dataString,
		cache: false,
		success: function(html){
			$("#city").html(html);
		} 
	})
	})
})
</script>

<script type="text/javascript">
$().ready(function() {
    
    $("#adminForm").validate({
        rules: {
            first_name: "required",            
            email_id: {
                required: true,
                email: true
            }
        },
        messages: {
            first_name: "Please enter name."            
        }
    });
});
</script>                                                